import axios from "axios";
import { api_urls } from "./urls";

export const project_api = {
    deleteProject(id) {
        return axios.post(api_urls.project.delete, {id: id})
    },
    pageProject(projectReq) {
        return axios.post(api_urls.project.page, projectReq)
    },
    updateProject(project) {
        return axios.post(api_urls.project.update, project)
    },
    createProject(project) {
        return axios.post(api_urls.project.create, {...project, id: 0})
    }
}